package mrusanov.player

import util.Random

object Talent {
  def apply(percentage:Int) = new Talent(percentage)
  def random = apply(Random.nextInt(101))

}

/**
 *
 * Talented players receive bonus to experience
 *
 * @param percentage bonus percentage from zero to 100 percent
 * */
class Talent private (val percentage:BigDecimal) {
   def bonusMultiplier = percentage / BigDecimal(100)
}
